<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'loan_add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="/css/jquery.datetimepicker.css">
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/jquery.datetimepicker.js"></script>
  </head>
  
  <body>
    <h2>添加标的</h2><br>
    <form action="/loan/addLoan.action" method="post">
    <p>标的名称:<input type="text" name="loan.title" value="测试体验标"/></p>
    <p>借款金额:<input type="text" name="loan.loanamount" value="10000"/></p>
    <p>开始时间:<input type="text" name="loan.starttime" id="start"/></p>
    <p>结束时间:<input type="text" name="loan.endtime" id="end"/></p>
    <p>标的描述:<input type="text" name="loan.description" value="测试体验标,不要在意细节"/></p>
    <p><input type="submit" value="添加标的"/></p>
    </form>
  </body>
  <script type="text/javascript">
  	$('#start').datetimepicker({lang:'ch',format:'Y-m-d H:i:00'});
  	$('#end').datetimepicker({lang:'ch',format:'Y-m-d H:i:00'});
  </script>
</html>
